inhibit_all_warnings!

platform :ios, '13.0'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

#use_frameworks!

# pod install --verbose --no-repo-update

# 适配各个iOS版本 pod库最好指定最低版本

def pod_utility
# 网络
pod 'Alamofire'
# 解析 JSON数据
pod 'SwiftyJSON'
pod 'HandyJSON'
# 自动布局框架
pod 'SnapKit'
# 分页控制器
pod 'TYPagerController', :git => 'https://gitee.com/icefox406859116/TYPagerController.git'
# 图片加载、缓存
pod 'Kingfisher'
# 图片视频浏览
pod 'JXPhotoBrowser'
## 切换主题
pod 'SwiftTheme'
end

target 'Mediaplayer' do
  use_frameworks!
  pod_utility
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        config.build_settings['CODE_SIGN_IDENTITY'] = ''
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end
